﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DualPlaneFR4Paster.Migrations
{
    public partial class 标定旋转中心改成4个 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 8,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "下相机标定点_吸头1", "BottomCameraCalib_Sucker1" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 9,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "下相机标定点_吸头2", "BottomCameraCalib_Sucker2" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 10,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "下相机标定点_吸头3", "BottomCameraCalib_Sucker3" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 11,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "下相机标定点_吸头4", "BottomCameraCalib_Sucker4" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 12,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "上相机标定点", "TopCameraCalib" });

            migrationBuilder.InsertData(
                table: "XYZRPoints",
                columns: new[] { "Id", "Alias", "Floor", "Name", "R", "X", "Y", "Z" },
                values: new object[] { 13, "上相机旋转中心_吸头1", 1, "TopCameraCenter_Suck1", 78.900000000000006, 11.199999999999999, 134.5, 20.899999999999999 });

            migrationBuilder.InsertData(
                table: "XYZRPoints",
                columns: new[] { "Id", "Alias", "Floor", "Name", "R", "X", "Y", "Z" },
                values: new object[] { 14, "上相机旋转中心_吸头2", 1, "TopCameraCenter_Suck2", 78.900000000000006, 11.199999999999999, 134.5, 20.899999999999999 });

            migrationBuilder.InsertData(
                table: "XYZRPoints",
                columns: new[] { "Id", "Alias", "Floor", "Name", "R", "X", "Y", "Z" },
                values: new object[] { 15, "上相机旋转中心_吸头3", 1, "TopCameraCenter_Suck3", 78.900000000000006, 11.199999999999999, 134.5, 20.899999999999999 });

            migrationBuilder.InsertData(
                table: "XYZRPoints",
                columns: new[] { "Id", "Alias", "Floor", "Name", "R", "X", "Y", "Z" },
                values: new object[] { 16, "上相机旋转中心_吸头4", 1, "TopCameraCenter_Suck4", 78.900000000000006, 11.199999999999999, 134.5, 20.899999999999999 });

            migrationBuilder.InsertData(
                table: "XYZRPoints",
                columns: new[] { "Id", "Alias", "Floor", "Name", "R", "X", "Y", "Z" },
                values: new object[] { 17, "载具横边点", 1, "TopCameraHorizontalLine", 78.900000000000006, 11.199999999999999, 134.5, 20.899999999999999 });

            migrationBuilder.InsertData(
                table: "XYZRPoints",
                columns: new[] { "Id", "Alias", "Floor", "Name", "R", "X", "Y", "Z" },
                values: new object[] { 18, "载具竖边点", 1, "TopCameraVerticalLine", 78.900000000000006, 11.199999999999999, 134.5, 20.899999999999999 });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 13);

            migrationBuilder.DeleteData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 14);

            migrationBuilder.DeleteData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 15);

            migrationBuilder.DeleteData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 16);

            migrationBuilder.DeleteData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 17);

            migrationBuilder.DeleteData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 18);

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 8,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "下相机标定点", "BottomCameraCalib" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 9,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "上相机标定点", "TopCameraCalib" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 10,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "上相机旋转中心", "TopCameraCenter" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 11,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "载具横边点", "TopCameraHorizontalLine" });

            migrationBuilder.UpdateData(
                table: "XYZRPoints",
                keyColumn: "Id",
                keyValue: 12,
                columns: new[] { "Alias", "Name" },
                values: new object[] { "载具竖边点", "TopCameraVerticalLine" });
        }
    }
}
